
package com.jf.cloud.service.sysmanager.remote;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.jf.cloud.service.sysmanager.dao.IPubgProblemService;
import com.jf.cloud.service.sysmanager.common.base.AjaxPageData;
import com.jf.cloud.service.sysmanager.common.base.OPaging;
import com.jf.cloud.service.sysmanager.entity.PubgProblem;
import com.jf.cloud.service.sysmanager.support.web.BaseController;

/**
 * 问题反馈控制器
 * 
 * @author 代码机1.0 创建时间：2018-03-31
 */
@Controller
@RequestMapping("/pubgProblem")
public class PubgProblemController extends BaseController {

	/**
	 * 日志
	 */
	private static Log log = LogFactory.getLog(PubgProblemController.class);

	/**
	 * 问题反馈服务
	 */
	@Resource
	private IPubgProblemService pubgProblemService;

	/**
	 * 后台问题反馈页面
	 *
	 * @author 高冬冬 2018年4月4日
	 */
	@RequestMapping("/list")
	public String list(HttpServletRequest request) {
		return "jsp/pubg/pubgProblem_list";
	}

	/**
	 * 后台问题反馈列表
	 *
	 * @author 高冬冬 2018年4月4日
	 */
	@ResponseBody
	@RequestMapping("/listPubgProblem.json")
	public AjaxPageData<PubgProblem> listPubgProblem(HttpServletRequest request, OPaging<PubgProblem> page) {
		page.setSort("submitTime");
		page.setOrder("DESC");
		return getAjaxPageData(pubgProblemService.findPage(page));
	}

}
